$(function(){
  $('.cp-gally').click(function(evt){
    var target = evt.target || evt.srcElement;
    $target = $(target);
    if(!$target.data('productid')){
      $target = $target.parents('.prod');
    }

    var prodId = $target.data('productid');
    if(prodId){
      //var newURL = window.location.protocol + "//" + window.location.host + "/wl_yscp_details.html?prodId="+ prodId;
      var debugUrl = "file:///F:/git.osc/hyx/public/wl_yscp_details.html?prodId=prod1";
      window.location.href= debugUrl;
    }
  });
});